package work;

import java.time.LocalDate;

public class User {
    private int id;//编号
    private  String name;//姓名
    private  String pass;//密码
    private LocalDate birthday;//生日
    private  String grade;//等级

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPass() {
        return pass;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    public String getGrade() {
        return grade;
    }

    public void setGrade(String grade) {
        this.grade = grade;
    }

    public User() {
    }

    public User(String name, String pass, LocalDate birthday, String grade) {
        this.name = name;
        this.pass = pass;
        this.birthday = birthday;
        this.grade = grade;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", pass='" + pass + '\'' +
                ", birthday=" + birthday +
                ", grade='" + grade + '\'' +
                "}\n";
    }


}
